from conftest import login_token5
import requests,pytest

class Test_yueche:
    # 咨询价格
    def test_yuece_01(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-choose/secondCar/verify/v1/inquiryPrice'
        headers={
            'userId':str(userId),
            'token':str(token)
        }
        data={
            'carId':1,
            'name': '张三',
            'phone': '17601535724',
            'city': '北京'
        }
        r=requests.post(url=url,headers=headers,json=data)
        r_json=r.json()
        print(r_json)
        print(r)

    # 获取车主联系方式
    def test_yuece_02(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-choose/secondCar/v1/getCarOwnerPhone'
        headers={
            'userId':str(userId),
            'token':str(token)
        }
        data={
            'carId':33
        }
        r=requests.get(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)

